#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# AFCP webapp URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 300 2008-12-15 14:56:43Z heavyzheng $
#

from django.conf.urls.defaults import patterns

urlpatterns = patterns( "afcpweb.apps.forum.views",

    ( r"^lang/$"                              		, "change_language"    ),
    
	( r"^$"                                   		, "home"     ), 
	( r"^home/$"                     	  	  		, "home"     ),
	( r"^home/(?P<lang>.+)/$"                 		, "home"     ),	
	( r"^visitors/$"      							, "visitor"     ),
	( r"^visitors/(?P<name>\w+)$"      				, "visitor"     ),
	( r"^visitors/(?P<name>\w+)/(?P<lang>.+)/$"     , "visitor"     ),
	
	( r"^exhibitors/$"      						, "exhibitor"     ),
	( r"^exhibitors/(?P<name>\w+)$"      			, "exhibitor"     ),
	( r"^exhibitors/(?P<name>\w+)/(?P<lang>.+)/$"   , "exhibitor"     ),
	
	( r"^contact/$"                    				, "contact"     ),
	( r"^contact/(?P<name>\w+)$"                    , "contact"     ),
    ( r"^contact/(?P<name>\w+)/(?P<lang>.+)/$"      , "contact"     ),
    
	# 404 not-found: must be the last URL pattern.
    ( r"^.*$"                                 		, "not_found"   ),
)

